#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    int n = 0;
    int a = 1;
    int sum = 0;
    scanf("%d", &n);
    int i = 0;
    for (i = 0; n != 0; i++)
    {
        int k = n % 2;
        sum += k * a;
        a *= 10;
        n = n / 10;
    }
    printf("%d", sum);
    return 0;
}